package com.xinli.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinli.common.annotation.Excel;
import com.xinli.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 意见反馈对象 t_yjfk
 *
 * @author ruoyi
 * @date 2025-05-06
 */
@Data
@TableName(value = "t_yjfk")
@EqualsAndHashCode(callSuper = true)
public class TYjfk extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * "内容"
     */
    @Excel(name = "内容")
    @NotBlank(message = "内容不能为空")
    @Size(min = 0, max = 200, message = "内容长度不能超过200个字符")
    private String content;

    /**
     * "用户Id"
     */
    @Excel(name = "用户Id")
    private String userId;


    /**
     * "用户姓名"
     */
    @TableField(exist = false)
    private String  username;

    /**
     * "用户头像"
     */
    @TableField(exist = false)
    private String  useravatar;


}
